import { IFeidaoAiNodejsComponent } from '@feidao-factory/atom-nodejs/interfaces';
import get_menus from '@feidao-factory/atom-nodejs/authorization/get-menus';
import render from '@feidao-factory/atom-nodejs/render/render';
import p001 from './p001';

export default async function na001(fd: IFeidaoAiNodejsComponent, ...args: any[]) {
	const menus = await get_menus(fd.data.msg, fd.data.headers, fd.data.spaceid, '3');
	await render(fd.data.node, JSON.stringify(menus), p001, 'p001');
}
